package at.fhhagenberg.hydrac.backend.javacc.generator;

public class Comment {

  private String text;
  private int lineNumber;

  public Comment(String text, int lineNumber) {
    this.lineNumber = lineNumber;
    this.text = text;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public int getLineNumber() {
    return lineNumber;
  }

  public void setLineNumber(int lineNumber) {
    this.lineNumber = lineNumber;
  }

  @Override
  public String toString() {
    return String.format("Comment at line <%d>: %s", lineNumber, text);
  }

}
